package com.bamboo.eduservice.service;

import com.bamboo.eduservice.entity.EduTeacher;
import com.bamboo.eduservice.entity.vo.TeacherQuery;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;


/**
 * @author jack.wu
 * @version 1.0
 * @date 2020-06-30
 */
public interface EduTeacherService extends IService<EduTeacher> {

    /**
     * 分页查询讲师
     *
     * @param current      当前页
     * @param limit        每页显示多少条
     * @param teacherQuery 查询参数
     * @return 讲师列表
     */
    Page<EduTeacher> pageTeacherCondition(long current, long limit, TeacherQuery teacherQuery);

    /**
     * 前台分页查询讲师
     *
     * @param page  当前页
     * @param limit 每页显示条数
     * @return 讲师分页数据
     */
    Map<String, Object> getFrontTeacherList(long page, long limit);

    /**
     * 前台查询讲师详情
     *
     * @param id 讲师id
     * @return 讲师详情
     */
    Map<String, Object> getTeacherInfo(String id);

}
